﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VitCode.Castle.Entities;
using VitCode.ObjectResolutionHelper;

namespace CRS.Core.Entities
{
    [OrMemo("货品"), OrIsCreateHistory(true)]
    public class GoodsInfo : BaseEntity
    {
        [OrMemo("条码")]
        public virtual string Code { get; set; }

        [OrMemo("名称")]
        public virtual string Name { get; set; }

        [OrMemo("规格")]
        public virtual string Specification { get; set; }

        [OrMemo("类别")]
        public virtual GoodsType Type { get; set; }

        [OrMemo("进价")]
        public virtual double BasePrice { get; set; }

        [OrMemo("建议零售价")]
        public virtual double DefaultPrice { get; set; }

        [OrMemo("建议最低库存")]
        public virtual int DefaultMinAmount { get; set; }

        [OrMemo("单位")]
        public virtual string Unit { get; set; }

        [OrMemo("商户")]
        public virtual ContactInfo Contact { get; set; }

        public override System.Collections.Specialized.StringCollection GetKeyProNames()
        {
            return new System.Collections.Specialized.StringCollection {"Code"};
        }
    }
}
